#pragma once

#include <text/Dictionary.h>

namespace liba {
namespace text {

class LookupState
{
	friend class Creator;
public:
	Dictionary* GetDictionary() const;
	void SetDictionary(Dictionary* value);
private:
	LookupState();
	~LookupState();

	WowPtr<Dictionary> dictionary;
};

/** You'd better never access this variable directly. Use functions from text/Lookup.h to get
*	things done.
*
*	This variable is 0 by default and is modified by creator.
*/
extern LookupState* g_lookupState;

} // namespace text
} // namespace liba